package Day08.Demo01;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/8 16:41
 */
public class Demo02StringPool {
    public static void main(String[] args) {
        String str1= "abc";
        String str2 = "abc";
        char[] charArray ={'a','b','c'};
        String str3 = new String(charArray);
        System.out.println(str1==str2);
        System.out.println(str1==str3);
        System.out.println(str2==str3);
    }
}
